import request from '@/utils/request'

// 封装文章相关的请求接口
export const articleListAPI = params => {
  return request({
    url: '/v1_0/articles',
    params
  })
}

// 封装文章详情接口
export const articleDetailAPI = (id) => {
  return request({
    url: `/v1_0/articles/${id}`
  })
}
